• MGLOfflineStorage implements a singleton (shared object) that manages offline packs. All of this class’s instance methods are asynchronous, reflecting the fact that offline resources are stored in a database. The shared object maintains a canonical collection of offline packs in its packs property.

    See more

    Declaration

    Objective-C

    
    @interface MGLOfflineStorage : NSObject

    Swift

    class MGLOfflineStorage : NSObject
  • An MGLOfflinePack represents a collection of resources necessary for viewing a region offline to a local database.

    To create an instance of MGLOfflinePack, use the +[MGLOfflineStorage addPackForRegion:withContext:completionHandler:] method. A pack created using -[MGLOfflinePack init] is immediately invalid.

    See more

    Declaration

    Objective-C

    
    @interface MGLOfflinePack : NSObject

    Swift

    class MGLOfflinePack : NSObject
  • A structure containing information about an offline pack’s current download progress.

    See more

    Declaration

    Objective-C

    struct MGLOfflinePackProgress {}

    Swift

    struct MGLOfflinePackProgress
  • The state an offline pack is currently in.

    See more

    Declaration

    Objective-C

    enum MGLOfflinePackState {}

    Swift

    enum MGLOfflinePackState : Int
  • An offline region defined by a style URL, geographic coordinate bounds, and range of zoom levels.

    To minimize the resources required by an irregularly shaped offline region, use the MGLShapeOfflineRegion class instead.

    See more

    Declaration

    Objective-C

    
    @interface MGLTilePyramidOfflineRegion
        : NSObject <MGLOfflineRegion, NSSecureCoding, NSCopying>

    Swift

    class MGLTilePyramidOfflineRegion : NSObject, MGLOfflineRegion, NSSecureCoding, NSCopying
  • An offline region defined by a style URL, geographic shape, and range of zoom levels.

    This class requires fewer resources than MGLTilePyramidOfflineRegion for irregularly shaped regions.

    See more

    Declaration

    Objective-C

    
    @interface MGLShapeOfflineRegion
        : NSObject <MGLOfflineRegion, NSSecureCoding, NSCopying>

    Swift

    class MGLShapeOfflineRegion : NSObject, MGLOfflineRegion, NSSecureCoding, NSCopying